package day4;

import javax.xml.bind.annotation.XmlList;

/**
 * @author oldliu
 * @since 1.0
 */
public class Circle {
    private double x;
    private double y;
    private double radius;
    public static final double pi = 3.14;

    //
    public Circle(double x, double y, double r) {
        this.x = x;
        this.y = y;
        this.radius = r;
    }


    public double area() {
        return radius * radius * pi;
    }

    public double zhouchang() {
        return radius * 2 * pi;
    }

    public static void showPI() {
        System.out.println("所有圆的圆周率是" + pi);
        //?System.out.println("半径是"+radius);
    }
}
